package cn.wolfcode.luowowo.scenic.service.impl;

import cn.wolfcode.luowowo.scenic.domain.Survey;
import cn.wolfcode.luowowo.scenic.mapper.SurveyMapper;
import cn.wolfcode.luowowo.scenic.service.ISurveyService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class SurveyServiceImpl implements ISurveyService{
    @Autowired
    private SurveyMapper surveyMapper;

    public String getSurveyByDestId(Long destId) {
        Survey survey=surveyMapper.selectByDestId(destId);
        if (survey!=null){
            return survey.getText();
        }
        return null;
    }
}
